<?php include view('header');?>

<h1>管理员信息</h1>

<form action="admincp.php?action=edit" method="post" enctype="multipart/form-data">
<table>
	<tr><th><label>头像：</label></th>
		<td>
			<img src="<?php echo $_G['admin']->v['avatar'];?>" onerror="this.src='./image/noavatar.gif';" /><br />
			网络图片：<input type="text" name="admin[avatar]" value="<?php echo $_G['admin']->v['avatar'];?>" /><br />
			本地上传：<input type="file" name="avatar_upload" />
		</td>
	</tr>

	<tr class="line"><td></td></tr>

	<tr><th><label>原密码：</label></th><td><input type="password" name="admin[oldpw]" /></td></tr>	
	<tr><th><label>新密码：</label></th><td><input type="password" name="admin[newpw]" /></td></tr>	
	<tr><th><label>新密码确认：</label></th><td><input type="password" name="admin[newpw2]" /></td></tr>	

	<tr class="line"><td></td></tr>

	<tr><th><label>E-mail：</label></th><td><input type="text" name="admin[email]" value="<?php echo $_G['admin']->v['email'];?>" /></td></tr>

	<tr class="line"><td></td></tr>
	
</table>
<div class="postbtn">
	<button type="submit" id="memcpedit" name="memcpedit" value="true">修改个人信息</button>
</div>
</form>

<?php include view('footer');?>